import { SharedEntity } from 'src/modules/shared/entities/shared.entity';
import { Entity, Column } from 'typeorm';

@Entity('account_role')
export class AccountRoleEntity extends SharedEntity {
    @Column({
        type: 'int',
        name: 'account_id',
        comment: '账号ID',
    })
    accountId: number;

    @Column({
        type: 'int',
        name: 'role_id',
        comment: '角色ID',
    })
    roleId: number;
}
